// total.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <map>
#include <utility>
#include <string>
using namespace std;
void map_test()
{   
	pair<string, int> pr1;
	pair<string, int> pr2("heaven", 7);    
	cout << pr2.first << "=" << pr2.second << endl;    
	pair<string, int>* prp = new pair<string, int>("yards", 9);    
	cout << prp->first << "=" << prp->second << endl;    
	map<string, string> engGerDict;    
	engGerDict["shoe"] = "Schuh";    
	engGerDict["head"] = "Kopf";     
	map<string, string>::const_iterator it;    
	for (it=engGerDict.begin(); it != engGerDict.end(); ++it) {    
		cout << it->first << "=" << it->second << endl;    
	}    
	system("PAUSE");
}

